<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>04-渐变小案例</title>
    <style>
      /* 线性渐变 实现 表格效果 */
      .box1 {
        width: 400px;
        height: 600px;
        border: 1px solid #000;
        margin: 0 auto;
        padding: 20px;
        background-image: repeating-linear-gradient(
          transparent 0px,
          transparent 29px,
          gray 30px
        );
        background-clip: content-box;
      }
      /* 径向渐变 实现  实心小球效果 */
      .box2 {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background-image: radial-gradient(at 80px 80px, white, #666);
      }
    </style>
  </head>

  <body>
    <div class="box1"></div>
    <div class="box2"></div>
  </body>
</html>
